import request from '@/utils/request'

// 查询答卷详情列表
export function listAnswer(query) {
    return request({
        url: '/answerSheet/answer/list',
        method: 'get',
        params: query
    })
}

// 查询答卷详情所有列表
export function listAllAnswer(query) {
    return request({
        url: '/answerSheet/answer/listAll',
        method: 'get',
        params: query
    })
}

// 查询答卷详情详细
export function getAnswer(id) {
    return request({
        url: '/answerSheet/answer/' + id,
        method: 'get'
    })
}

// 新增答卷详情
export function addAnswer(data) {
    return request({
        url: '/answerSheet/answer',
        method: 'post',
        data: data
    })
}

// 新增答卷详情
export function saveBatchAnswer(data) {
    return request({
        url: '/answerSheet/answer/saveBatch',
        method: 'post',
        data: data
    })
}

// 修改答卷详情
export function updateAnswer(data) {
    return request({
        url: '/answerSheet/answer',
        method: 'put',
        data: data
    })
}

// 删除答卷详情
export function delAnswer(id) {
    return request({
        url: '/answerSheet/answer/' + id,
        method: 'delete'
    })
}
